package com.twb.auth.entity.twbUser.vo;

import java.io.Serializable;

import org.apache.commons.lang3.StringUtils;

import com.twb.core.base.entity.vo.PageVo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @ClassName SearchTwbUserVo
 * @Description /sys/twbUser/search 入参对象
 * @author DSY
 * @date 2018年11月15日 下午4:00:48
 */
@ApiModel(value = "SearchTwbUserVo", description = "/sys/twbUser/search 入参对象")
public class SearchTwbUserVo extends PageVo implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 登录名
	 */
	private String loginName;

	/**
	 * 机构编码
	 */
	private String orgId;
	
	/**
	 * 角色编码
	 */
	private String roleId;

	/**
	 * 用户名称
	 */
	private String name;

	/**
	 * 用户类型
	 */
	private String userType;

	/**
	 * 手机号码
	 */
	private String phone;

	/**
	 * 邮箱
	 */
	private String mail;

	/**
	 * 用户状态（0，失效；1，生效）
	 */
	private String status;

	/**
	 * 是否查询所有子节点（1-是，2-否）
	 */
	@ApiModelProperty(value = "是否查询所有子节点")
	private boolean isAllChildNode;

	/** 机构查询KEY */
	@ApiModelProperty(value = "机构查询KEY")
	private String orgSearchKey;

	/** 模糊查询 */
	@ApiModelProperty(value = "模糊查询")
	private String queryLikeStr;

	/**
	 *  职务
	 */
	@ApiModelProperty(value = "职务")
	private String position;
	/**
	 *  微信openid
	 */
	@ApiModelProperty(value = "openid")
	private String openid;
	
	@ApiModelProperty(hidden=true)
	private String developerName;
	
	public String getLoginName() {
		if (StringUtils.isBlank(loginName)) {
			return null;
		}
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getOrgId() {
		if(StringUtils.isBlank(orgId)) {
			return null;
		}
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}
	
	public String getRoleId() {
		if (StringUtils.isBlank(roleId)) {
			return null;
		}
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUserType() {
		if (StringUtils.isBlank(userType)) {
			return null;
		}
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	public String getPhone() {
		if(StringUtils.isBlank(phone)) {
			return null;
		}
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getMail() {
		if(StringUtils.isBlank(mail)) {
			return null;
		}
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public boolean getIsAllChildNode() {
		return isAllChildNode;
	}

	public void setIsAllChildNode(boolean isAllChildNode) {
		this.isAllChildNode = isAllChildNode;
	}

	public String getOrgSearchKey() {
		return orgSearchKey;
	}

	public void setOrgSearchKey(String orgSearchKey) {
		this.orgSearchKey = orgSearchKey;
	}

	public String getQueryLikeStr() {
		if (StringUtils.isBlank(queryLikeStr)) {
			return null;
		}
		return queryLikeStr;
	}

	public void setQueryLikeStr(String queryLikeStr) {
		this.queryLikeStr = queryLikeStr;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public String getDeveloperName() {
		return developerName;
	}

	public void setDeveloperName(String developerName) {
		this.developerName = developerName;
	}
}
